﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace LogAnProject.Tests
{
    [TestFixture]
    class ExpectedExceptionsTests3
    {
   
        private LogAnalyzer lg=null;
        [SetUp]
        public void Setup()
        {
            lg = new LogAnalyzer();
        }
        
        [Test]
        [ExpectedException(typeof(ArgumentException), ExpectedMessage = "Dosya Adi girilmedi!")]
        public void IsValidFileName_EmptyFileName_ThrowsException() //kullaniciya hata dondursun! hata donup donmediginin testi
        {
            lg.IsValidLogFileName(string.Empty);
        }

        [TearDown]
        public void TearDown()
        {
            lg = null;
        }

    }
}
